loginApp.controller('loginController', ['$scope', 'loginService',
    function($scope, loginService) {
        $scope.credentials = {
            username: '',
            password: ''
        };
        $scope.submit = function(credentials) {
            loginService.login(credentials);

        };
    }
]);